package com.wtwd.campus.h5_manager.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wtwd.campus.h5_manager.entity.H5Deviceinfo;

import java.util.List;

/**
 * @author mjy
 * @date 2022/03/09
 * @description
 */

public interface H5DeviceManageService {

    /**
     * 查找条件暂定为
     * imei 和在线状态
     *
     * @param searchDevice
     * @return
     */
    List<H5Deviceinfo> queryDeviceByConditions(H5Deviceinfo searchDevice);

    /**
     * 鉴别imei是否已经存在
     *
     * @param imei
     * @return
     */
    Boolean AuthImei(String imei);

    H5Deviceinfo getDeviceInfoByimei(String imei);

    Integer addDeviceInfo(H5Deviceinfo h5DeviceInfo);

    H5Deviceinfo getDeviceInfoByDeviceId(Integer deviceId);

    Integer deleteDeviceById(Integer deviceId);

    IPage<H5Deviceinfo> queryDeviceByConditionsPage(H5Deviceinfo searchDevice, Page<H5Deviceinfo> page);

    IPage<H5Deviceinfo> queryVcomDeviceByConditionsPage(H5Deviceinfo searchDevice, Page<H5Deviceinfo> page);
}
